package com.zimmur.dao.goods;


import java.util.List;

import com.zimmur.model.goods.GoodsCollect;
import com.zimmur.tools.PageUtil;
/**
 * 商品收藏Dao
 * @author Administrator
 *
 */
public interface IGoodsCollectDao {
    /**
	 * 添加
	 * @param topic
	 */
    int insertGoodsCollect(GoodsCollect  goodsCollect);
    /**
	 * 修改
	 * @param topic
	 */
    int updateGoodsCollect(GoodsCollect  goodsCollect);
    /**
	 * 查询
	 * @param topic
	 */
    GoodsCollect selectGoodsCollect(GoodsCollect goodsCollect);
    /**
     * 我的收藏
     * @param userId
     * @return
     */
    List<GoodsCollect> selectByUserIdGoodsCollect(PageUtil<GoodsCollect> page);
    /**
     * 我的收藏统计
     * @param userId
     * @return
     */
    int selectByUserIdGoodsCollectCount(long userId);
}